

package at.fhj.itm.metadata.impl.postgres;

import at.fhj.itm.metadata.VariableLengthSqlType;
import at.fhj.itm.metadata.impl.AbstractSqlType;



/**
 *
 * @author Seuchter
 */
public class PostgresVariableLengthSqlType extends PostgresSqlDataType implements VariableLengthSqlType{

    protected int length;

    public PostgresVariableLengthSqlType(String name, int size, boolean isArray, int length,long oid)
    {
      super(name, length, isArray, oid);
      this.length = length;

    }

    public int getLength()
    {
        return length;
    }

    @Override
    public String getTypePostfix()
    {
        return String.format("(%d)", length);
    }




}
